package com.v5ba.server.service.impl;

import com.v5ba.server.dao.SysLogRepository;
import com.v5ba.server.entity.SysLog;
import com.v5ba.server.service.ISysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author yiren
 * @date 2018/6/17
 */
@Service
public class SysLogServiceImpl implements ISysLogService {

    @Autowired
    private SysLogRepository sysLogRepository;

    @Override
    public void add(String type, String content) {
        SysLog log = new SysLog();
        log.setType(type);
        log.setContent(content);
        sysLogRepository.save(log);
    }
}
